/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package csc668868webappteamsp12aproject1;

import java.util.ArrayList;
/**
 *
 * @author apeterman
 */
public class ProductCatalog {

        ArrayList<ProductSpecification> productSpecs = new ArrayList<ProductSpecification>();

        public ProductCatalog(String filePath) {
            
         try{
                 ProductReader p = new ProductReader(filePath);
                 for(int i=0;i<256;i++)
                 {
                     ProductSpecification product = p.getNextProduct();
                     if(product != null)
                        productSpecs.add(product);
                     else
                        break;
                 }

            }
         catch (Exception e) {
                System.out.println("Couldn't find file.");
            }
        }

        
        public boolean checkTransaction(Transaction t){

              return true;
        }
}


